package org.jplearning.io;

import java.util.LinkedList;
import java.util.List;

import org.jplearning.model.text.IText;

public class WordEntry {
	private String id;
	private List<IText> words;
	private List<WordEntryMeaning> meanings;
	
	public WordEntry(String id) {
		this.id = id;
		words = new LinkedList<IText>();
		meanings = new LinkedList<WordEntryMeaning>();
	}
	
	public void addWord(IText text){
		words.add(text);
	}
	
	public void addMeaning(WordEntryMeaning meaning){
		meanings.add(meaning);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<IText> getWords() {
		return words;
	}

	public List<WordEntryMeaning> getMeanings() {
		return meanings;
	}
}


